// -----------------------------------------------------------------------------
// Projet : GCLU
// Client : Pôle Emploi
// Auteur : Pierre-Marie Dhaussy / Bull S.A.S.
// -----------------------------------------------------------------------------
package net.hinatafr.pmdat;

import android.app.Activity;
import android.content.Intent;
import android.content.res.Resources;
import android.os.Bundle;

/**
 * @author Pierre-Marie Dhaussy
 */
public abstract class Screen extends Activity {
	
	/**  */
	protected Resources resources = null;

	/*
	 * (non-Jsdoc)
	 * 
	 * @see android.app.Activity#onCreate(android.os.Bundle)
	 */
	@Override
	protected void onCreate(final Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		resources = getResources();
	}

	/**
	 * Display a screen
	 * 
	 * @param screenClass
	 *            screen class
	 */
	public <S extends Screen> void displayScreen(final Class<S> screenClass) {
		Intent intent = new Intent(this, screenClass);
		startActivity(intent);
	}
}
